import {createRouter, createWebHashHistory, createWebHistory} from 'vue-router'

const router = createRouter({
    history: createWebHashHistory(import.meta.env.BASE_URL),
    routes: [
        {
            path: '/',
            name: 'home',
            meta: {title: '墨香书阁'},
            component: () => import('@/views/home/index.vue')
        },
        {
            path: '/files',
            name: 'files',
            meta: {title: '文件管理'},
            component: () => import('@/views/files/index.vue')
        }
    ],
})

export default router
